<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>列表渲染</title>
</head>
<body>
<div id="app">
    <select>
       <option v-for="(city,index) in cities" :value="city.id" :key="index">{{city.name}}</option>
    </select>
     <div v-for="(city,index) in cities">
         {{index+1}}-{{city.name}}
     </div>

    <ul>
        <li v-for="(item,index) in  employee">{{index}}-{{employee[index]}}</li>
    </ul>

    <!--ul-->
    <!--table-->
    <!--for object-->

</div>
</body>
<script src="../../../lib/vue.js"></script>
<script>

    new Vue({
        el: '#app',
        data: {
            cities: [
                {
                    id: 1,
                    name: '天津'
                }, {
                    id: 2,
                    name: '北京'
                }
            ],employee:{
                id:1,
                name:'Lee',
                age:23,
                dept:'HR'
            }
        }
    })
</script>
</html>